﻿@model IEnumerable<TCM.Subject>

@{
    ViewBag.Title = "Subjects List";
}
<div class="IndexBack">
    @Html.ActionLink(" ", "../")
</div>

<div class="toolbar">
    @Html.ActionLink("Create New", "Create")
</div>
<br />
@*<table class="DataGrid"> *@    
<table class="grdTable" style="width: 100%;" cellspacing="0">
 <thead>
<tr class="GridHeader">
    <tr>
       @* <th>
            @Html.DisplayNameFor(model => model.SubjectID)
        </th>*@
        <th>
            @Html.DisplayNameFor(model => model.Code)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Name)
        </th>
     @*   <th>
            @Html.DisplayNameFor(model => model.NameAr)
        </th>*@
        <th>
            @Html.DisplayNameFor(model => model.Description)
        </th>      
        <th></th>
   </tr>
    </thead>
    <tbody>
@foreach (var item in Model) {
    <tr>
      @*  <td>
            @Html.DisplayFor(modelItem => item.SubjectID)
        </td>*@
        <td>
            @Html.DisplayFor(modelItem => item.Code)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Name)
        </td>  
         <td>
            @Html.DisplayFor(modelItem => item.Description)
        </td>     
        <td>
            @Html.ActionLink("Edit", "Edit", new { id = item.SubjectID}) |
            @*@Html.ActionLink("Details", "Details", new { /* id=item.PrimaryKey */ }) |*@
            @Html.ActionLink("Delete", "Delete", new { id = item.SubjectID })
        </td>
    </tr>
}

</tbody>
</table>
